﻿using System.Windows.Forms;
using System;

namespace Personal_Cloud_Disk_PC_Client
{
    public partial class MainForm : Form
    {
        public MainForm()
        {
            InitializeComponent();
            pCloudClient = new PCloudClient();
        }
        private PCloudClient pCloudClient;

        private void btnStart_Click(object sender, EventArgs e) {
            pCloudClient.startSync();
        }

        private void btnStop_Click(object sender, EventArgs e) {
            pCloudClient.stopSync();
        }

        private void MainForm_FormClosing(object sender, FormClosingEventArgs e) {
            pCloudClient.stopSync();
        }
    }
}
